import IRegEmailForm from '@/model/form/user/IRegisterForm'
import IResVO from '@/model/vo/common/IResVO'
import $http from '@/util/http'
import { AxiosResponse } from 'axios'

// 用户注册-通过邮箱
export default function regEmailApi(form: IRegEmailForm) {
  return $http.post<IResVO, AxiosResponse<IResVO>, IRegEmailForm>(
    '/reg/email',
    form
  )
}
